/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */



package sonia.golf;

/**
 *
 * @author Sebastian Sdorra
 */
public class Hole
{

  /**
   * Constructs ...
   *
   */
  public Hole() {}

  /**
   * Constructs ...
   *
   *
   * @param number
   * @param par
   */
  public Hole(short number, short par)
  {
    this.number = number;
    this.par = par;
  }

  //~--- methods --------------------------------------------------------------

  /**
   * Method description
   *
   *
   * @return
   */
  @Override
  public String toString()
  {
    StringBuilder buffer = new StringBuilder();

    buffer.append("nr: ").append(number).append(", par:").append(par);

    return buffer.toString();
  }

  //~--- get methods ----------------------------------------------------------

  /**
   * Method description
   *
   *
   * @return
   */
  public short getNumber()
  {
    return number;
  }

  /**
   * Method description
   *
   *
   * @return
   */
  public short getPar()
  {
    return par;
  }

  //~--- set methods ----------------------------------------------------------

  /**
   * Method description
   *
   *
   * @param number
   */
  public void setNumber(short number)
  {
    this.number = number;
  }

  /**
   * Method description
   *
   *
   * @param par
   */
  public void setPar(short par)
  {
    this.par = par;
  }

  //~--- fields ---------------------------------------------------------------

  /** Field description */
  private short number;

  /** Field description */
  private short par;
}
